package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableCaching//开启springboot缓存
@EnableAsync //开启异步任务
@EnableScheduling//开启定时任务
// extends SpringBootServletInitializer
public class DemoApplication {
//    通过Ctrl+O弹出来生成

//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
////        return super.configure(builder);
//        return builder.sources(DemoApplication.class);
//    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println(
                "     ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣶⣶⣷⣄        \n" +
                        "     ⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⢸⣶⣿⣿⣿⣿⣿⣧        \n" +
                        "     ⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⡿⠿⠃          \n" +
                        "     ⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⡄⣿⣿⣿⣿⣦        \n" +
                        "     ⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⠁⣿⣿⣿⣿⣿         \n" +
                        "     ⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⢸⣿⣿⣿⣿⣿         \n" +
                        "     ⠀⠀⠀⠀⠀⠀⠀⣀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿          \n" +
                        "     ⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁           \n" +
                        "     ⠀⠀⠀⠀⣤⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿         \n" +
                        "     ⠀⠀⣠⣿⣿⣿⣿⣿⡿⠟⠛⠙⠛⣿⣿⣿⣿⣧           \n" +
                        "     ⠀⢀⣿⣿⣿⠿⠉⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣄          \n" +
                        "     ⠀⣼⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⡄          \n" +
                        "     ⠀⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿         \n" +
                        "     ⠀⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿             \n" +
                        "     ⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡀          \n" +
                        "     ⣰⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣄            \n" +
                        "    **保佑       永不宕机     永无BUG              ");
    }

}
